><

Finding HTML code elements



The Element tab in the Find dialog box lets you find and manipulate HTML code elements using an HTML-savvy search mechanism that offers several advantages over simple Find and Replace. Find and Replace searches look for literal text strings. For example, if you search for <body bgcolor="red"> using Find and Replace, you will not find instances of this tag which lack the quotation marks or have other attributes included, such as <body bgcolor=red> or <body text="black" bgcolor="red">. Element searches, on the other hand, understand HTML structure and will catch these variations. In addition, Element lets you quickly add, delete, or modify attributes of existing HTML tags. This added sophistication makes Element a more powerful way to search for and manipulate HTML elements on a page or throughout an entire site.

The Element window includes three sections:

  • The top Search section lets you select search criteria, including HTML elements and attributes.
  • The middle Action section lets you set actions you want carried out on any HTML elements and attributes found during a search.
  • The lower Find In section lets you set the scope of a search: one file, several unrelated files, or an entire site.


  • A. Search section B. Action section C. Find in action


    Searching > Finding HTML code elements

    Related subtopics: